#!/bin/sh
scp root@frqte:/home/root/Applications/Qtopia/qtopia_db.sqlite BackUp/qtopia_db`date "+%Y-%m-%d"`.sqlite
./sql2vcf.pl -i BackUp/qtopia_db`date "+%Y-%m-%d"`.sqlite -o BackUp/qtopia_db`date "+%Y-%m-%d"`.vcf

grep FN BackUp/qtopia_db`date "+%Y-%m-%d"`.vcf | sort > BackUp/contact_list_`date "+%Y-%m-%d"`.vcf
echo "I contatti sono: "
grep FN BackUp/qtopia_db`date "+%Y-%m-%d"`.vcf | wc -l
